package events 
{
	import flash.events.Event;
	import model.MAsteroid;
	import model.MovedObject;
	
	/**
	 * @author vkozhaev
	 */
	public class MovedObjectEvent extends Event 
	{

		public static const MOVE:String = "move"; 
		public static const ASTEROID_HAVE_BIN_PROCESSED:String = "asteroid_have_bin_processed";
		private var _movedObject:MovedObject;
		
		public function MovedObjectEvent(_movedObject:MovedObject,type:String, bubbles:Boolean=false, cancelable:Boolean=false) 
		{ 
			super(type, bubbles, cancelable);
			this._movedObject = _movedObject;			
		} 
		
		public override function clone():Event 
		{ 
			return new MovedObjectEvent(_movedObject,type, bubbles, cancelable);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("MovedObjectEvent", "type", "bubbles", "cancelable", "eventPhase"); 
		}
		
		public function get movedObject():MovedObject {
			return _movedObject;
		}
		
	}
	
}